﻿@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_QuanLy.cshtml";
}
@model Project.MVC.Model.ContactInfo
@using Project.MVC.Model;
@using (Html.BeginForm("Edit", "Contact", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
        
    <fieldset>
        <table class="tbl">
            <tr>
                <td colspan="4">
                    <div class="header-title">
                        Cập nhật thông tin liên lạc</div>
                </td>
            </tr>
            <tr class="button">
                <td colspan="4">
                    <input type="submit" value="Lưu" />
                 @*   <input type="button" value="Trở về" onclick="Reset()" />*@
                </td>
            </tr>
            <tr>
                <td class="label">
                    Tên công ty 
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Company,Model.Company)
                    @Html.Hidden(ContactInfo.ListFieldName.Id,Model.Id)
                 
                </td>
            </tr>
            <tr>
                <td class="label">
                    Địa chỉ 
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Address,Model.Address)
                  
                </td>
            </tr>
            <tr>
                <td class="label">
                    Điện thoại
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Phone,Model.Phone)
                   
                </td>
            </tr>
            <tr>
                <td class="label">
                    Fax 
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Fax,Model.Fax)
                  
                </td>
            </tr>
            <tr>
                <td class="label">
                    Email
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Email,Model.Email)
                   
                </td>
            </tr>
            <tr>
                <td class="label">
                    Nick yahoo 
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Yahoo,Model.Yahoo)
                  
                </td>
            </tr>
            <tr>
                <td class="label">
                    Nick sky 
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Sky,Model.Sky)
               
                </td>
            </tr>
              <tr>
                <td class="label">
                   Sologan
                </td>
                <td colspan="3">
                    @Html.TextArea(ContactInfo.ListFieldName.Sologan,Model.Sologan, new { @class = "text-editor" })
                  
                </td>
            </tr>
            <tr>
                <td class="label">
                    Giới thiệu 
                </td>
                <td colspan="3">
                    @Html.TextArea(ContactInfo.ListFieldName.AboutUs,Model.AboutUs, new { @class = "text-editor" })
                  
                </td>
            </tr>
            <tr class="button">
                <td colspan="4">
                    <input type="submit" value="Lưu" />
                   @* <input type="button" value="Trở về" onclick="Reset()" />*@
                </td>
            </tr>
        </table>
    </fieldset>
}
<script src="@Url.Content("~/Scripts/js/editor.js")" type="text/javascript"></script>
